package cn.service;

import cn.constant.Messages;
import cn.entity.Article;
import cn.entity.Comment;

import java.util.UUID;

/**
 * @author m on 2023/1/29
 * Description:
 */
public interface CommentService {

    //新增文章
    Comment createComment(Comment comment);
    //删除文章
    Messages deleteComment(UUID uuid, String token);
    //评论数量
    Integer countByArticle(Article article);
    //子评
    void replyComment(Comment comment,Comment replyComment);

    Comment getById(UUID id);

}
